package com.bristua.barcode.supplier.biz;

import com.bristua.barcode.common.util.SequenceUtil;
import com.bristua.barcode.supplier.dao.TChannelRequestConfigMapper;
import com.bristua.barcode.supplier.model.TChannelRequestConfig;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/9/15.
 */
@Service
@Transactional
public class AddChannelRequestConfigBiz {
    @Resource
    private TChannelRequestConfigMapper tChannelRequestConfigMapper;

    public void addChannelRequestConfig(TChannelRequestConfig tChannelRequestConfig){
        tChannelRequestConfig.setRequestConfigId(SequenceUtil.nextId());
        tChannelRequestConfigMapper.insert(tChannelRequestConfig);
    }
}
